package com.why.simpleboot.core.configration;

/**
 * @program: why-simpleboot
 * @description: 工厂设计模式
 * @author: @why
 * @create: 2021-05-21 10:52
 **/
public class ConfigurationFactory {
    public static SimpleBootConfiguration getConfig() {
        return SingleConfigurationHolder.INSTANCE;
    }

    /**
    静态内部类
     */
    private static class SingleConfigurationHolder {
        private static final SimpleBootConfiguration INSTANCE = new SimpleBootConfiguration();
    }

}
